import numpy as np
import pandas as pd

class SAM:
    def __init__(self,SAM_name,攻击间隔=60,攻击半径=20000):
        self.name=SAM_name
        self.cd=攻击间隔
        self.att_radius=攻击半径
        self.Position=[]
        self.speed=0
        self.cool=0
        self.v_missile=0.5
        self.live=1

    def Attack(self,dt):
        if self.cool==0:
            self.cool=self.cd
            return True
        else:
            self.__CD(dt)
            return False

    def __CD(self,dt):
        self.cool-=dt

